<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/user/addfield" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.add}{$Think.lang.field}</h1>
    </div>
    <div class="form">
      <form action="{:URL('admin/User/addField')}" id="J_form" method="POST">
        <dl class="kv">
          <dt>
            <label>{$Think.lang.field}{$Think.lang.keyName}：</label>
          </dt>
          <dd>
            <input class="input-text" type="text" name="fieldkey" value="{$res.name}" required/>
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.field}{$Think.lang.name}：</label>
          </dt>
          <dd>
            <input class="input-text" type="text" name="fieldname" value="{$res.title}" required/>
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.field}{$Think.lang.type}：</label>
          </dt>
          <dd>
            <input type="hidden" name="fieldType" value="text">{$Think.lang.textInput}
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.belongsModule}：</label>
          </dt>
          <dd>
            <select name="module">
              <option value="intro">{$Think.lang.personalCircumstances}</option>
              <option value="contact">{$Think.lang.contact}</option>
            </select>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.whether}{$Think.lang.enable}：</label>
          </dt>
          <dd>
            <label>
              <input type="radio" name="status" id="status" value="1" checked />{$Think.lang.enable}</label>
            <label>
              <input type="radio" name="status" id="status" value="0" />{$Think.lang.disable}</label>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.spaceShow}：</label>
          </dt>
          <dd>
            <label>
              <input type="radio" name="spaceShow" value="1" />{$Think.lang.enable}</label>
            <label>
              <input type="radio" name="spaceShow" value="0" checked />{$Think.lang.disable}</label>
          </dd>
        </dl>
        <div class="actions">
          <input class="btn btn-y" type="submit" value="{$Think.lang.addNode}" />
          <a href="{:URL('admin/User/dataConfig')}" class="btn btn-n btn">{$Think.lang.cancel}</a>
        </div>
      </form>
    </div>
  </div>
</body>

</html>
